<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html">
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ page import="edu.uclm.esi.tysw.podtube.domain.Usuario"%>

<div class="page-header">
	<div class="row">
		<div class="text-left col-md-4">
			<jsp:include page="logo.jsp" />
		</div>
			<div class="col-md-4">
				<div class="input-group">
		      <input type="text" placeholder="Buscar un audio..." class="form-control">
		      <span class="input-group-btn">
		        <button class="btn btn-default" type="button" onclick="buscar()">
		        	<span class="glyphicon glyphicon-search"></span>
		        </button>
		      </span>
	    </div>
		</div>
		<div class="col-md-4">
			<details>
				<summary class="text-right"> Identifícate </summary>
				<s:form style="margin-bottom:25px;" method="post" id="formularioEntrada">
					<div class="form-group">
						<label>Email</label>
						<input type="email" name="email" class="form-control" id="inputEmailLogin" placeholder="Introduce tu email">
					</div>
					<div class="form-group">
						<label>Password</label>
						<input type="password" name="pwd" class="form-control" id="inputPasswordLogin" placeholder="Password">
					</div>
					<button type="submit" class="btn btn-default" onclick="entrar()">
						<span class="glyphicon glyphicon-log-in"></span> Entrar
					</button>
				</s:form>
			</details>
			<details>
				<summary class="text-right"> ¿No eres usuario? Obtén una cuenta </summary>
				<s:form action="AltaUsuario" method="post" id="formularioRegistro">
						<div class="form-group">
							<label>Email</label>
							<input type="email" class="form-control" name="email" id="inputEmailRegister" placeholder="Introduce tu email" >
						</div>
						<div class="form-group">
							<label>Password</label>
							<input type="password" class="form-control" name="pwd1" id="inputPasswordRegister1" placeholder="Password">
						</div>
						<div class="form-group">
							<label>Password</label>
							<input type="password" class="form-control" name="pwd2" id="inputPasswordRegister2" placeholder="Repita su password">
						</div>
						<button type="submit" class="btn btn-default">
							<span class="glyphicon glyphicon-thumbs-up"></span> Registrar
						</button>
					</s:form>
				</details>
			</div>
		</div>
	</div>